package com.tong.hao.common.configuration.comm;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @ClassName CommConfig
 * @Author 友野浩二
 * @Date 2019/12/17 13:54
 * @Description 公共配置(乱七八糟的配置)
 * @Version 1.0
 */
@Configuration
@Data
public class CommConfig {

    @Value(value = "${mybatis-plus.mapper-locations}")
    private String mapperLocations;

    @PostConstruct
    public void init() {
        CommConfigUtils.setConfig(this);
    }

}
